package cn.uin.infrastructure.dao;

import cn.uin.infrastructure.dao.po.HomeAttachment;
import cn.uin.infrastructure.dao.po.HomeFamilyInviteList;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Auther: uIn
 * @Date: 2025/10/19 - 10 - 19 - 18:40
 * @Description: cn.uin.infrastructure.dao
 * @version: 1.0
 */
@Mapper
public interface HomeFamilyInviteListDao {

	/**
	 * 根据用户id获取已发出的邀请列表
	 * @param userId
	 * @return
	 */
	List<HomeFamilyInviteList> queryByUserId(Long userId);

	/**
	 * 修改状态
	 * @param activeUserId
	 * @param passiveUserId
	 * @param status
	 */
	void updateStatus(@Param("activeUserId") Long activeUserId,
	                  @Param("passiveUserId") Long passiveUserId,
	                  @Param("status") Integer status);

}
